package Logger;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Logger;

public class SLogger {
	public SLogger(String cName,String lMessage)
	{
		Logger logger = Logger.getLogger(cName);

        FileHandler fileHandler;
		try {
			fileHandler = new FileHandler("autoblog.log", true);
			logger.addHandler(fileHandler);
	        logger.info(lMessage);
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}        
	}
}
